#include "../src/MKVdecode.hpp"
#include <iostream>
#include <unistd.h>

int main()
{
  gst_init(nullptr,nullptr);
  MKV_Decode decode("/home/A306/HBTY_WorkSpace/remoteUI/testPeople3/C1527A0090416.mkv");
  char imageData[1920*1080*3];
  int counter=0;
  while(true)
  {
    sleep(5);
    try
    {
      decode.GetNewImage(imageData);
    }
    catch(const std::runtime_error & e)
    {
      return 0;
    }
    std::cout<<"GetNew Image "<<counter++<<std::endl;
  }
}
